﻿@model IEnumerable<KCMS.BusinessLogic.Models.Page>
@{
    ViewBag.Title = "Страницы";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<p>
    @*@using (Ajax.BeginForm("GetByCategory", "Page", new AjaxOptions { UpdateTargetId = "page-list" }))
{
}*@
    @Html.DropDownList("categories", null, new { @id = "drop-down-list-filter" })
    <script type="text/javascript">
        $(document).ready(function () {
            $("#drop-down-list-filter").live("change", function () {
                Filtr($(this), '@Url.Action("GetByCategory", "Page")' + '?categoryId=', '#page-list');
            });
        });
    </script>
</p>
@{Html.RenderPartial("_PageList", Model);}
